
	<div class="content_ct_show_ct">
		<table class="content_ct_show_ct_tbl" width="100%">   
			<tr class="content_ct_show_ct_tbl_top">
				<td width="5%">
					<input type="checkbox" class="input_checkall" />
				</td>
				<td width="5%">
                    <a class="link_change" href="<?php echo base_url() ?>back_end/link_hba/sort/id/<?php echo $sort; ?>">ID</a>
				</td>
				<td width="30%">
					<a class="link_change" href="<?php echo base_url() ?>back_end/link_hba/sort/name/<?php echo $sort; ?>">Name</a>
				</td>
				<td width="35%">
					<a class="link_change" href="<?php echo base_url() ?>back_end/link_hba/sort/link/<?php echo $sort; ?>">Link</a>
				</td>
				<td width="5%">
					<a class="link_change" href="<?php echo base_url() ?>back_end/link_hba/sort/order/<?php echo $sort; ?>">
						Order
					</a>
					<a style="cursor: pointer;" href="javascript: submitform()">
						<img class="save_img" title="Nhấn click để thay đổi thứ tự sắp xếp" src="<?php echo base_url(); ?>images/back_end/save.png" />
					</a>	
				</td>
				<td width="10%">
					<a class="link_change" href="<?php echo base_url() ?>back_end/link_hba/sort/active/<?php echo $sort; ?>">Active</a>
				</td>
				<td width="5%">
					<a class="link_change" href="<?php echo base_url() ?>back_end/link_hba/sort/status/<?php echo $sort; ?>">Status</a>
				</td>
				<td width="5%">
					<span>Action</span>
				</td>
			</tr>
			
			<?php
                $count = 1; 
                if (count($link_hba_value) > 0) {
                	foreach ($link_hba_value as $value) {
                	$count += 1;	 
                ?> 
			<tr class="<?php if ($count%2) { echo 'content_ct_show_ct_tbl_bt_1'; } else { echo 'content_ct_show_ct_tbl_bt_2'; }  ?>">
				<td>
					<input class="input_checkbox" type="checkbox"  value="<?php echo $value['id']; ?>" name="value_id[]"/>
				</td>
				<td>
					<span><?php echo $value['id']; ?></span>
				</td>
				<td>
					<span><?php echo $value['name']; ?></span>
				</td>
				<td>
					<span><?php echo $value['link']; ?></span>
				</td>
				<td>
					<input class="order_link_hba" value="<?php echo $value['order']; ?>" name="order_link_hba[<?php echo $value['id']; ?>]" type="text" />
				</td>
				<td>
					<?php if($value['active'] == 1) { ?>
                    	<a class="tag_action" href="<?php echo base_url()?>back_end/link_hba/active_kh/<?php echo $value['id']; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check2.png"  alt="icon check" /></a>
                    <?php } else { ?>
                 		<a class="tag_action" href="<?php echo base_url()?>back_end/link_hba/active_kh/<?php echo $value['id']; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check.png"  alt="icon check" /></a>
                    <?php }?>
				</td>
				<td>
					<?php if($value['status'] == 1) { ?>
                    	<a class="tag_action" href="<?php echo base_url()?>back_end/admins/active/<?php echo $table.'-'.$value['id'].'-'.'0'.'-'.$table; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check2.png" title="Trạng thái" alt="icon check" /></a>
                    <?php } else { ?>
                 		<a class="tag_action" href="<?php echo base_url()?>back_end/admins/active/<?php echo $table.'-'.$value['id'].'-'.'1'.'-'.$table; ?>"><img src="<?php echo base_url()?>images/back_end/icon/check.png" title="Trạng thái" alt="icon check" /></a>
                    <?php }?>
				</td>
				<td>
					<a href="<?php echo base_url()?>back_end/link_hba/edit/<?php  echo $value['id']; ?>">Sửa</a>
					<span>|</span>
					<a href="<?php echo base_url()?>back_end/link_hba/delete/<?php  echo $value['id']; ?>">Xóa</a>
				</td>
			</tr>
			<?php }
			 	} else {
			?>
			<tr>
				<td colspan="7"><i style="color: #000;">Không có kết quả nào được tìm thấy</i></td>
			</tr> 
			 <?php
			 	} 
			 ?>
		</table>
	</div>
	
	<div class="content_ct_show_paging">
		<span style="color: #888;">Tổng số:</span>
		<span style="color: #444;">(<?php echo $this->pagination->total_rows; ?>)</span>
		<?php echo $this->pagination->create_links(); ?>
	</div>

<script type="text/javascript">
	<?php
		if (isset($success_vl)) {
			echo "alert('Xóa thành công !')";
		} 
	?>
</script>